
public class Instructor implements InstructorInterface {
	private String nickName;
	private int moneyRaised;
	private int dunks;
	
	public Instructor(String inNickName) {
		nickName = inNickName;
		moneyRaised = 0;
		dunks = 0;
	}
	
	@Override
	public void addToMoneyRaised(int amount) {
		moneyRaised += amount;
	}
	
	@Override
	public void wasDunked() {
		dunks++;
	}
	
	@Override
	public String getNickName() {
		return nickName;
	}
	
	@Override
	public int getMoneyRaised() {
		return moneyRaised;
	}
	
	@Override
	public int getDunks() {
		return dunks;
	}
	
	@Override
	public boolean equals(Object what) {
		Instructor other = (Instructor) what;
		
		return nickName.equals(other.nickName);
	}
	
	@Override
	public int compareTo(InstructorInterface other) {
		return moneyRaised - other.getMoneyRaised();
	}
}
